﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Principal;

namespace FCMS.Mvc.Security.Principal
{
    public class UserPrincipal : IPrincipal
    {
        private UserIdentity m_identity;

        public UserPrincipal(UserIdentity identity)
        {
            this.m_identity = identity;
        }

        #region IPrincipal Members

        IIdentity IPrincipal.Identity
        {
            get
            {
                return this.m_identity;
            }
        }

        bool IPrincipal.IsInRole(string role)
        {
            return true;
        }

        #endregion
    }
}
